package com.trover.myapplication.core.ui

import android.os.Bundle

abstract class BaseVMActivity<VM : BaseViewModel>() :
    BaseActivity() {
    lateinit var mViewModel: VM
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        mViewModel = initVM()
        startObserve()
    }

    abstract fun initVM(): VM
    abstract fun startObserve()

}